package com.itheima.controller;

import java.util.Scanner;

//敏感词替换-字符串替换
public class Demo12 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入");
        String s = sc.nextLine();
        String tmd = s.replace("TMD", "***");
        System.out.println(tmd);
    }
}
